<template>
  <div>
    <Header />
    <router-view></router-view>
    <!-- <Footer v-if="isFooterShow" /> -->
    <Footer v-if="!$route.meta.isHidden" />
  </div>
</template>

<script>
import Header from "@/components/Header";
import Footer from "@/components/Footer";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  mounted() {
    console.log(this);
  },
  computed: {
    // 控制当前是否展示Footer组件
    // isFooterShow() {
    //   return this.$route.name != "login" && this.$route.name != "register";
    // },
  },
};
</script>

<style scoped></style>
